import { AcGamePbject } from "./AcGameObject";

export class Wall extends AcGamePbject{
    constructor(r,l,gamemap){
        super();

        this.r=r;
        this.l=l;
        this.gamemap=gamemap;
        this.color="#B37226"
    }

    update(){
        this.render();
    }

    render(){
        const L = this.gamemap.L;
        const ctx  =this.gamemap.ctx;

        ctx.fillStyle = this.color;
        ctx.fillRect(this.l*L,this.r*L,L,L);
    }
}